/**
 * 自定义广告弹窗样式
 */
 /* 自定义广告样式 */
 .custom-ad {
  /* padding: 20px; */
  /* background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); */
  border-radius: 10px;
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* 小广告样式 */
.mini-ad,.mini-ad1,.mini-ad2 {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width:200px;
    height:113px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    transition: transform 0.3s;
}

.mini-ad1{
    top: 65% !important;
}

.mini-ad2{
    top: 80% !important;
}

.mini-ad:hover,.mini-ad1:hover {
    transform: translateY(-50%) scale(1.05);
}

.mini-ad img,.mini-ad1 img,.mini-ad2 img {
    max-width: 120%;
    max-height: 100%;
    object-fit: cover;
}
.custom-ad img{
    width: 100%;
}

/* 动画效果 */
@keyframes slideRight {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 1;
        transform: translate(calc(100vw - 500px), 0) scale(0);
    }
}

.ad-slide-right {
    animation: slideRight 2.2s forwards;
}

/* 自定义layer皮肤 */
body .layui-layer-custom {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body .layui-layer-custom .layui-layer-title {
    background-color: #6a11cb;
    color: #fff;
    font-weight: bold;
    border-bottom: none;
}

body .layui-layer-custom .layui-layer-content {
    padding: 0;
    overflow: hidden;
    display: flex;
  align-items: center;
  justify-content: center;
}

body .layui-layer-custom .layui-layer-close {
    color: #fff;
    font-weight: bold;
}

/* 广告动画效果 */
.ad-animated {
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

@keyframes adPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.ad-pulse {
    animation-name: adPulse;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .custom-ad {
       /* padding: 15px; */
    }
    
    .custom-ad h3 {
        font-size: 18px;
    }
    
    .custom-ad p {
        font-size: 14px;
        margin-bottom: 10px;
    }
}
